import request from '@/utils/request'

const implement = {
  // 变更申请列表
  changeApplyList(params){
    return request.get(`/kjxm/changeRequest/list`,{params});
  },
  // 我的变更申请列表
  changeApplyMyList(params){
    return request.get(`/kjxm/changeRequest/myList`,{params});
  },
  // 变更申请添加
  changeApplyAdd(data){
    return request.post('/kjxm/changeRequest/add', data);
  },
  // 变更申请修改
  changeApplyUpdate(data){
    return request.post('/kjxm/changeRequest/update', data);
  },
  // 变更申请获取
  changeApplyGet(id){
    return request.get(`/kjxm/changeRequest/detail/${id}`);
  },
  // 变更申请删除
  changeApplyDel(id){
    return request.post(`/kjxm/changeRequest/delete/${id}`);
  },
  changeApplySubmit(data){
    return request.post('/kjxm/changeRequest/submit', data);
  },
  // 我的可变更项目列表
  changeApplyMyProjectList(params){
    return request.get(`/kjxm/project/myChangeList`,{params});
  },
  // 变更申请导出Pdf
  changeApplyPDF(id){
    return request.post(`/kjxm/changeRequest/createPdfByWindows/${id}`);
  },
  // 执行情况报告
  performanceReportList(params){
    return request.get('/kjxm/projectAnnualReport/list', {params});
  },
  performanceReportMyList(params){
    return request.get('/kjxm/projectAnnualReport/myList', {params});
  },
  performanceReportAdd(data){
    return request.post('/kjxm/projectAnnualReport/add', data);
  },
  performanceReportUpdate(data){
    return request.post('/kjxm/projectAnnualReport/update', data);
  },
  performanceReportSubmit(data){
    return request.post('/kjxm/projectAnnualReport/submit', data);
  },
  performanceReportGet(id){
    return request.get(`/kjxm/projectAnnualReport/detail/${id}`);
  },
  performanceReportDel(id){
    return request.post(`/kjxm/projectAnnualReport/delete/${id}`);
  },
  getPerformanceReportAll(id){
    return request.get(`/kjxm/projectAnnualReport/allDetail/${id}`);
  },
  performanceReportPlanAdd(data){
    return request.post('/kjxm/projectAnnualReportPlan/add', data);
  },
  performanceReportPlanUpdate(data){
    return request.post('/kjxm/projectAnnualReportPlan/update', data);
  },
  performanceReportPlanGetByReportId(id){
    return request.get(`/kjxm/projectAnnualReportPlan/getByReportId/${id}`);
  },
  performanceReportResultsAdd(data){
    return request.post('/kjxm/projectAnnualReportGetResults/add', data);
  },
  performanceReportResultsUpdate(data){
    return request.post('/kjxm/projectAnnualReportGetResults/update', data);
  },
  performanceReportResultsGetByReportId(id){
    return request.get(`/kjxm/projectAnnualReportGetResults/getByReportId/${id}`);
  },
  performanceReportExperienceAdd(data){
    return request.post('/kjxm/projectAnnualReportExperience/add', data);
  },
  performanceReportExperienceUpdate(data){
    return request.post('/kjxm/projectAnnualReportExperience/update', data);
  },
  performanceReportExperienceGetByReportId(id){
    return request.get(`/kjxm/projectAnnualReportExperience/getByReportId/${id}`);
  },
  performanceReportTableAdd(data){
    return request.post('/kjxm/projectAnnualReportTable/add', data);
  },
  performanceReportTableUpdate(data){
    return request.post('/kjxm/projectAnnualReportTable/update', data);
  },
  performanceReportTableGetByReportId(id){
    return request.get(`/kjxm/projectAnnualReportTable/getByReportId/${id}`);
  },
  performanceReportPDF(id){
    return request.post(`/kjxm/projectAnnualReport/createPdfByWindows/${id}`);
  },
}

export default implement;
